package com.woniu108.carService.commos.exception.produnt;

/**
 * @author 谭鹏
 */

public enum ProductExceptionCode {
    /**
     *
     */
    PRODUCT_TYPE_NOT_HAVE(40010,"商品种类不存在"),
    PRODUCT_TYPE_HAVE(40011,"商品种类已存在"),
    PRODUCT_TYPE_BANED(40012,"商品种类已被禁用"),
    PRODUCT_TYPE_STATE_NORMAL(40013,"商品种类状态正常"),
    PRODUCT_BRAND_NOT_HAVE(40020,"商品品牌不存在"),
    PRODUCT_BRAND_HAVE(40021,"商品品牌已存在"),
    PRODUCT_BRAND_BANED(40022,"商品品牌已被禁用"),
    PRODUCT_BRAND_STATE_NORMAL(40023,"商品品牌状态正常"),

    PRODUCT_ITEM_NOT_HAVE(40030,"商品总览不存在"),
    PRODUCT_ITEM_HAVE(40031,"商品总览已存在"),
    PRODUCT_ITEM_BANED(40032,"商品总览已被禁用"),
    PRODUCT_ITEM_STATE_NORMAL(40033,"商品总览状态正常"),
    PRODUCT_ITEM_ID_NULL(40035,"商品总览id为空"),
    PRODUCT_ITEM_PAY_NUM_NOT_ENOUGH(40035,"商品总览销量等于或小于0,无法减少"),

    PRODUCT_INFO_NOT_HAVE(40040,"商品详情不存在"),
    PRODUCT_INFO_HAVE(40041,"商品详情已存在"),
    PRODUCT_INFO_BANED(40042,"商品详情已被禁用"),
    PRODUCT_INFO_STATE_NORMAL(40043,"商品详情状态正常"),
    PRODUCT_INFO_REST_NUM_NOT_HAVE(40044,"商品余量不足"),
    PRODUCT_INFO_ID_NULL(40045,"商品详情id为空"),
    PRODUCT_INFO_PAY_NUM_NOT_ENOUGH(40046,"商品详情销量等于或小于0,无法减少"),
    PRODUCT_CART_NOT_HAVE(40060,"购物车信息不存在"),
    PRODUCT_ACTIVE_HAVE(40061,"该商品存在尚未到期的活动"),
    PRODUCT_ACTIVE_NOT_FOUND(40062,"活动不存在"),
    INVALID_START_TIME(40063,"无效的开始时间"),
    INVALID_END_TIME_BEFORE_NOW(40064,"结束时间早于现在"),

    INVALID_END_TIME_BEFORE_START(40065,"结束时间早于开始时间"),
    SERVICE_TYPE_NAME_NULL(40070,"服务类型名称不能为空"),
    SERVICE_TYPE_NAME_EXISTS(40071,"服务类型名称已存在"),
    SERVICE_TYPE_NOT_HAVE(40072,"服务类型不存在"),
    SERVICE_INFO_HAVE(40080,"服务信息已存在"),
    SERVICE_INFO_NOT_HAVE(40081,"服务信息不存在"),
    SERVICE_INFO_BANED(40082,"服务信息已被禁用"),
    SERVICE_INFO_NOT_YOU_STORE(40083,"不是你门店的服务信息"),
    SERVICE_INFO_STATE_NORMAL(40084,"服务信息正常,无需解锁"),
    STORE_PRODUCT_NOT_YOUR_STORE(40090,"不是你门店商品信息");



    private Integer code;
    private String message;

    ProductExceptionCode() {
    }

    ProductExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
